package com.matrix.marketing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.matrix.common.enums.CouponStatusEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 有点甜
 * @since 2025/8/1
 */
@Data
@TableName("t_user_coupon")
public class UserCoupon {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private Long templateId;
    private CouponStatusEnum status;
    private LocalDateTime obtainTime;
    private LocalDateTime expireTime;
    private LocalDateTime usedTime;
    private Long usedOrderId;
}
